package com.ruoyi.space.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.space.mapper.SpaceAnswerDtoMapper;
import com.ruoyi.space.domain.SpaceAnswerDto;
import com.ruoyi.space.service.ISpaceAnswerDtoService;

/**
 * 查看回答Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class SpaceAnswerDtoServiceImpl implements ISpaceAnswerDtoService 
{
    @Autowired
    private SpaceAnswerDtoMapper spaceAnswerDtoMapper;

    /**
     * 查询查看回答
     * 
     * @param id 查看回答主键
     * @return 查看回答
     */
    @Override
    public SpaceAnswerDto selectSpaceAnswerDtoById(Long id)
    {
        return spaceAnswerDtoMapper.selectSpaceAnswerDtoById(id);
    }

    /**
     * 查询查看回答列表
     * 
     * @param spaceAnswerDto 查看回答
     * @return 查看回答
     */
    @Override
    public List<SpaceAnswerDto> selectSpaceAnswerDtoList(SpaceAnswerDto spaceAnswerDto)
    {
        return spaceAnswerDtoMapper.selectSpaceAnswerDtoList(spaceAnswerDto);
    }

    /**
     * 新增查看回答
     * 
     * @param spaceAnswerDto 查看回答
     * @return 结果
     */
    @Override
    public int insertSpaceAnswerDto(SpaceAnswerDto spaceAnswerDto)
    {
        return spaceAnswerDtoMapper.insertSpaceAnswerDto(spaceAnswerDto);
    }

    /**
     * 修改查看回答
     * 
     * @param spaceAnswerDto 查看回答
     * @return 结果
     */
    @Override
    public int updateSpaceAnswerDto(SpaceAnswerDto spaceAnswerDto)
    {
        return spaceAnswerDtoMapper.updateSpaceAnswerDto(spaceAnswerDto);
    }

    /**
     * 批量删除查看回答
     * 
     * @param ids 需要删除的查看回答主键
     * @return 结果
     */
    @Override
    public int deleteSpaceAnswerDtoByIds(Long[] ids)
    {
        return spaceAnswerDtoMapper.deleteSpaceAnswerDtoByIds(ids);
    }

    /**
     * 删除查看回答信息
     * 
     * @param id 查看回答主键
     * @return 结果
     */
    @Override
    public int deleteSpaceAnswerDtoById(Long id)
    {
        return spaceAnswerDtoMapper.deleteSpaceAnswerDtoById(id);
    }
}
